package com.wenhuang.chatgptopen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenhuang.chatgptopen.mapper.FansMapper;
import com.wenhuang.chatgptopen.pojo.Fans;
import com.wenhuang.chatgptopen.pojo.User;
import com.wenhuang.chatgptopen.service.FansService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/*
 *@Time：2023/6/3
 *@Author：Jelly
 */
@Service
public class FansServiceImpl extends ServiceImpl<FansMapper, Fans> implements FansService {

    @Autowired
    private FansMapper fansMapper;

    @Override
    public Integer addFans(Fans fans) {
        return fansMapper.addFans(fans);
    }

    @Override
    public Integer deleteFans(Fans fans) {
        return fansMapper.deleteFans(fans);
    }

    @Override
    public List<User> getFans(Fans fans) {
        return fansMapper.getFans(fans);
    }

    @Override
    public Integer getFollowed(Fans fans) {
        return fansMapper.getFollowed(fans);
    }
}
